If the same position is requested on a popover, it should at least ensure
the window is realized and raised, even if no resizes are queued on the
content. Otherwise other widgets being mapped might raise the windows over
the popover's if its original position is unchanged.
https://bugzilla.gnome.org/show_bug.cgi?id=734129
GtkPositionType pos,
const cairo_rectangle_int_t *rect)
{
+ gboolean need_resize = TRUE;
GtkWindowPopover *data;
g_return_if_fail (GTK_IS_WINDOW (window));
{
if (data->pos == pos &&
memcmp (&data->rect, rect, sizeof (cairo_rectangle_int_t)) == 0)
- return;
+ need_resize = FALSE;
}
data->rect = *rect;
gdk_window_raise (data->window);
}
- gtk_widget_queue_resize (popover);
+ if (need_resize)
+ gtk_widget_queue_resize (popover);
}
void